package com.itheima.stock.service.impl;

import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 股票主营业务接口实现
 * @Author: TLB
 * @Date: 2022/12/6 16:40
 */
@Service
@Transactional
@Slf4j
public class StockBusinessServiceImpl implements StockBusinessService {

    @Autowired
    private StockBusinessMapper stockBusinessMapper;

    /**
     * 查询所有股票主营业务数据
     * @return
     */
    @Override
    public List<StockBusiness> findAll() {

        return stockBusinessMapper.selectAll();
    }
}
